/**
 *  cmos_read()
 *  cte byte z CMOS
 */
unsigned char cmos_read(unsigned int reg) {
  __outportb__(0x70, reg);
  return (unsigned char) __inportb__(0x71);
}

/**
 *  cmos_write()
 *  zapise byte co CMOS
 */
void cmos_write(unsigned int reg, unsigned int data) {
  __outportb__(0x70, reg);
  __outportb__(0x71, data);
}
